package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.DeleteShortUrlResponseModel;

/**
 * 删除短链接响应转换
 * @author 紫灵
 * @date 2023年02月21日 16时26分46秒
 */
public class DeleteShortUrlResponseConvert {

    /** 私有构造方法，禁止创建对象 */
    private DeleteShortUrlResponseConvert(){}

    /**
     * 内容转模型
     * @param deleteShortUrlResponseBody 删除短链接响应内容
     * @return 删除短链接响应实体
     */
    public static DeleteShortUrlResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.DeleteShortUrlResponseBody deleteShortUrlResponseBody){
        DeleteShortUrlResponseModel deleteShortUrlResponseModel = new DeleteShortUrlResponseModel();
        deleteShortUrlResponseModel.setCode(deleteShortUrlResponseBody.getCode());
        deleteShortUrlResponseModel.setMessage(deleteShortUrlResponseBody.getMessage());
        deleteShortUrlResponseModel.setRequestId(deleteShortUrlResponseBody.getRequestId());
        return deleteShortUrlResponseModel;
    }

    /**
     * 内容转模型
     * @param deleteShortUrlResponseBody 删除短链接响应内容
     * @return 删除短链接响应实体
     */
    public static DeleteShortUrlResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.DeleteShortUrlResponseBody deleteShortUrlResponseBody){
        DeleteShortUrlResponseModel deleteShortUrlResponseModel = new DeleteShortUrlResponseModel();
        deleteShortUrlResponseModel.setCode(deleteShortUrlResponseBody.getCode());
        deleteShortUrlResponseModel.setMessage(deleteShortUrlResponseBody.getMessage());
        deleteShortUrlResponseModel.setRequestId(deleteShortUrlResponseBody.getRequestId());
        return deleteShortUrlResponseModel;
    }


}
